package com.ushine.web.base.model.base;

import com.ushine.web.base.model.system.DataPermissionDO;
import com.ushine.web.component.authority.DataFilterTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Set;

/**
 * @Author: yls
 * @Date 2022/2/9 14:53
 * @Description: 数据权限判断环境类
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataFilterMetaDataBO implements Serializable {
    /**
     * 过滤类型：数据隔离级别
     */
    private DataFilterTypeEnum filterType;

    /**
     * 自定义sql
     */
    private String sql;

    /**
     * 部门 id 集合
     */
    private Set<Long> deptIds;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 数据权限
     */
    private DataPermissionDO dataPermission;

}
